package com.mjk.manager.amis.core.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mjk.common.base.model.BaseEntity;
import com.mjk.common.core.jdbc.annotation.ArcSharding;
import com.mjk.common.core.jdbc.annotation.ExampleField;
import com.mjk.common.core.jdbc.annotation.Filed;
import com.mjk.common.core.jdbc.annotation.Id;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@ArcSharding(dataSource = "", table = "sys_role_user", userName = "")
public class SysRoleUser extends BaseEntity {

    //@Id
    @ExampleField
    private String id;
    @Filed(comment = "角色ID", lenght = 64, cloum = "ROLE_ID")
    private String ROLE_ID;
    @Filed(comment = "用户ID", lenght = 64, cloum = "USER_ID")
    private String USER_ID;
    @Filed(comment = "删除标记", lenght = 1, cloum = "DELETED")
    private String DELETED;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Filed(comment = "创建时间", lenght = 19, cloum = "CREATED_AT")
    private LocalDateTime CREATED_AT;
    @Filed(comment = "创建人员", lenght = 64, cloum = "CREATED_BY")
    private String CREATED_BY;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Filed(comment = "更新时间", lenght = 19, cloum = "UPDATED_AT")
    private LocalDateTime UPDATED_AT;
    @Filed(comment = "更新人员", lenght = 64, cloum = "UPDATED_BY")
    private String UPDATED_BY;


}